package com.example.cloud.model.business.medical;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by wt on 2018/11/30.
 */
@Entity(name = "data_file")
@Data
@EqualsAndHashCode(callSuper = false)
public class DataFile extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    // 业务主键
    @Column(name = "business_id")
    private Long businessId;
    // 患者主键
    @Column(name = "patient_id")
    private Long patientId;
    // 主诉主键
    @Column(name = "complaint_id")
    private Long complaintId;
    // 文件名称
    @Column(name = "name")
    private String name;
    // 远程访问路径
    @Column(name = "path")
    private String path;
    // 组名
    @Column(name = "group_name")
    private String groupName;
    // 具名
    @Column(name = "group_file_name")
    private String groupFileName;
    // 文件大小
    @Column(name = "size")
    private Long size;
    // 文件类型
    @Column(name = "type")
    private Integer type;
    // 宽度
    @Column(name = "width")
    private Integer width;
    // 高度
    @Column(name = "height")
    private Integer height;
    // 来源
    @Column(name = "source")
    private int source;
    // 账户编号
    @Column(name = "account_id")
    private Long accountId;
    // 用户编号
    @Column(name = "user_id")
    private Long userId;
    // 组织机构编号
    @Column(name = "organ_id")
    private Long organId;
    // 组织机构名称
    @Column(name = "organ_name")
    private String organName;
}
